<%@page contentType="text/html; charset=utf-8" language="java"%>
<!DOCTYPE html>
<%@page import="java.util.*"%>
<% 
	String username = "";
	if(session.getAttribute("userID") != null){
		username = (String) session.getAttribute("userID");
	}else{
		response.sendRedirect("LoginServlet");
	}
%>
<html ng-app>
<head>
<meta charset="UTF-8">
<title>Data business Page</title>
<link type="text/css" href="<%=request.getContextPath()%>/css/datamanage/data_business_styles.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/datamanage/manage_customerdata_styles.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/datamanage/upload_styles.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/demos.css" rel="stylesheet" />
<link type="text/css" href="<%=request.getContextPath()%>/css/combobox.css" rel="stylesheet" />

<script src="<%=request.getContextPath()%>/js/jquery/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery/jquery.form.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery/combobox.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/main_js.js" type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/datamanage/manage_customerdata_main_js.js" type="text/javascript"></script>

<script src="<%=request.getContextPath()%>/js/angular/angular.js" type="text/javascript"></script>
</head>
<body>
	<img src="images/ajax-loader.gif" id="loading-img" style="display:none;" alt="Please Wait"/>
	<div id="progressbox" ><div id="progressbar"></div ><div id="statustxt">0%</div></div>
	<div class="div_search">
		<input type="button" id="btn_dialog_search" value="search" class="btn">
		<input type="button" id="btn_add" value=" add " class="btn" action_goto="INSERT">  
	</div>
	<table class="tableData" style="text-align: center;">
		<tr class="tr_th">
			<th width='10%' class="div_header ui-dialog-titlebar ui-widget-header ui-corner-all">Action</th>
			<th class="div_header ui-dialog-titlebar ui-widget-header ui-corner-all">Hospital name</th>
			<th class="div_header ui-dialog-titlebar ui-widget-header ui-corner-all">Type</th>
			<th class="div_header ui-dialog-titlebar ui-widget-header ui-corner-all">Department/Bed cap.</th>
			<th class="div_header ui-dialog-titlebar ui-widget-header ui-corner-all">President/IMP:RP</th>
			<th class="div_header ui-dialog-titlebar ui-widget-header ui-corner-all">Director/IMP:RP</th>
			<th class="div_header ui-dialog-titlebar ui-widget-header ui-corner-all">Sale person</th>
		</tr>
		<tbody id="dataTbody">
		
		</tbody>
	</table>
	<div class="demo">
		<div id="dialog-message" title="alert message" style="display:none">
			<p id="p_freetext">
				<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
				
			</p>
		</div>
		<div id="dialog-message-confirm_delete" title="alert message" style="display:none">
			<p>
				<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
				Do you want to delete this record ?
			</p>
		</div>
		<div id="dialog-search" title="Search" style="display:none">
			<form id="search_frm" action="CustomerDataManageServlet" method="get">
				<input type="hidden" name="action" id="action" value="SEARCH">
				<table class="tbl_search">
					<tr>
						<td width="20%">Type : </td>
						<td>
							<div id="div_srh_type">
								<input type="radio" name="srh_type" id="srh_type0" value="" checked="checked"><label for="srh_type0">None</label>
								<input type="radio" name="srh_type" id="srh_type1" value="PV"><label for="srh_type1">Private</label>
								<input type="radio" name="srh_type" id="srh_type2" value="PB"><label for="srh_type2">Public</label>
							</div>
						</td>
					</tr>
					<tr>
						<td>Department : </td>
						<td>
							<select name="srh_department" id="srh_department">
								<option value="">Please select..</option>
								<option value="X-Rey">X-Rey</option>
								<option value="OB-GYN">OB-GYN</option>
							</select>
						</td>
					</tr>
					<tr>
						<td>Bed capacity : </td>
						<td>
							<p>
							  <label for="amount">range:</label>
							  <input type="text" name="srh_bed_min" id="srh_bed_min" class="textbox_stl" value="0" size="3"> -
							  <input type="text" name="srh_bed_max" id="srh_bed_max" class="textbox_stl" value="0" size="3"> 
							</p>
							<div id="bed-capacity-range"></div>
						</td>
					</tr>
					<tr>
						<td>Rating of IMP (President) : </td>
						<td>
							<div id="div_imp_rate_president">
								<input type="radio" name="srh_imp_rate_president" id="srh_imp_rate_president0" value="0" checked="checked"><label for="srh_imp_rate_president0">none</label>
								<input type="radio" name="srh_imp_rate_president" id="srh_imp_rate_president1" value="1"><label for="srh_imp_rate_president1">1</label>
								<input type="radio" name="srh_imp_rate_president" id="srh_imp_rate_president2" value="2"><label for="srh_imp_rate_president2">2</label>
								<input type="radio" name="srh_imp_rate_president" id="srh_imp_rate_president3" value="3"><label for="srh_imp_rate_president3">3</label>
								<input type="radio" name="srh_imp_rate_president" id="srh_imp_rate_president4" value="4"><label for="srh_imp_rate_president4">4</label>
								<input type="radio" name="srh_imp_rate_president" id="srh_imp_rate_president5" value="5"><label for="srh_imp_rate_president5">5</label>
							</div>
						</td>
					</tr>
					<tr>
						<td>Rating of RP (President) : </td>
						<td>
							<div id="div_rp_rate_president">
								<input type="radio" name="srh_rp_rate_president" id="srh_rp_rate_president0" value="0" checked="checked"><label for="srh_rp_rate_president0">none</label>
								<input type="radio" name="srh_rp_rate_president" id="srh_rp_rate_president1" value="1"><label for="srh_rp_rate_president1">1</label>
								<input type="radio" name="srh_rp_rate_president" id="srh_rp_rate_president2" value="2"><label for="srh_rp_rate_president2">2</label>
								<input type="radio" name="srh_rp_rate_president" id="srh_rp_rate_president3" value="3"><label for="srh_rp_rate_president3">3</label>
								<input type="radio" name="srh_rp_rate_president" id="srh_rp_rate_president4" value="4"><label for="srh_rp_rate_president4">4</label>
								<input type="radio" name="srh_rp_rate_president" id="srh_rp_rate_president5" value="5"><label for="srh_rp_rate_president5">5</label>
							</div>
						</td>
					</tr>
					<tr>
						<td>Rating of IMP (Director) : </td>
						<td>
							<div id="div_imp_rate_director">
								<input type="radio" name="srh_imp_rate_director" id="srh_imp_rate_director0" value="0" checked="checked"><label for="srh_imp_rate_director0">none</label>
								<input type="radio" name="srh_imp_rate_director" id="srh_imp_rate_director1" value="1"><label for="srh_imp_rate_director1">1</label>
								<input type="radio" name="srh_imp_rate_director" id="srh_imp_rate_director2" value="2"><label for="srh_imp_rate_director2">2</label>
								<input type="radio" name="srh_imp_rate_director" id="srh_imp_rate_director3" value="3"><label for="srh_imp_rate_director3">3</label>
								<input type="radio" name="srh_imp_rate_director" id="srh_imp_rate_director4" value="4"><label for="srh_imp_rate_director4">4</label>
								<input type="radio" name="srh_imp_rate_director" id="srh_imp_rate_director5" value="5"><label for="srh_imp_rate_director5">5</label>
							</div>
						</td>
					</tr>
					<tr>
						<td>Rating of RP (Director) : </td>
						<td>
							<div id="div_rp_rate_director">
								<input type="radio" name="srh_rp_rate_director" id="srh_rp_rate_director0" value="0" checked="checked"><label for="srh_rp_rate_director0">none</label>
								<input type="radio" name="srh_rp_rate_director" id="srh_rp_rate_director1" value="1"><label for="srh_rp_rate_director1">1</label>
								<input type="radio" name="srh_rp_rate_director" id="srh_rp_rate_director2" value="2"><label for="srh_rp_rate_director2">2</label>
								<input type="radio" name="srh_rp_rate_director" id="srh_rp_rate_director3" value="3"><label for="srh_rp_rate_director3">3</label>
								<input type="radio" name="srh_rp_rate_director" id="srh_rp_rate_director4" value="4"><label for="srh_rp_rate_director4">4</label>
								<input type="radio" name="srh_rp_rate_director" id="srh_rp_rate_director5" value="5"><label for="srh_rp_rate_director5">5</label>
							</div>
						</td>
					</tr>
				</table>
			</form>			
		</div>
		<div id="dialog-data_section" title="" style="display:none">
			<%@ include file="manage_customerdata_data.jsp"  %>
		</div>
		<div id="dialog-view_section" title="" style="display:none">
			<%@ include file="manage_customerdata_view.jsp"  %>
		</div>
	</div>
</body>
</html>